<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* line-height用于设置文本的行高 */
    /* 行高可以先简单理解为一行文字所占据的高度 */
    .box {
      background-color: #f00;
      color: #fff;
      width: 200px;
      line-height: 1.5;
    }
  </style>
</head>

<body>
  <div class="box">我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素我是dib元素
  </div>
</body>

</html>